<?PHP
Zend_Loader::loadClass('Zend_Auth');
$authClass = Zend_Auth::getInstance();

if ($authClass->hasIdentity()) {
    $auth = $authClass->getStorage()->read();

    $id = $auth['usuario_id'];

    $usuarioModel = new Application_Model_Usuario();

    $usuario = $usuarioModel->find($id)->current();
}
?>
<?PHP if (isset($usuario)): ?>
<div class="login">
<p class="saudlog">Seja Bem-vindo,    
<?PHP echo $usuario['nome']; ?>
</p>
</div>
<?PHP else: ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="/css/login-box.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="login-box">
<H1>Painel WCA</H1>
Aqui você pode inserir, editar e excluir o conteúdo do seu site.
<br />
<br />
<form id="login-form" method="post" action="<?PHP echo $this->url(array('controller' => 'login'), null, true); ?>"> 
<div id="login-box-name" style="margin-top:20px;">Usuário:</div><div id="login-box-field" style="margin-top:20px;"><input name="usuario" class="form-login" title="Username" value="" alt="usuario" size="30" maxlength="2048" /></div>
<div id="login-box-name">Senha:</div><div id="login-box-field"><input name="senha" type="password" class="form-login" title="Password" value="" size="30" maxlength="2048" /></div>
<br />
<br />
<br />

            <input class="submit-login" type="submit" value=""/>
</form>
</div>
</body>
</html>
<?PHP endif; ?>